﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcademyRPG
{
    public class Ninja : Hero, IGatherer
    {
        public Ninja(string name, Point position, int owner)
            : base(name, position, owner, 0, int.MaxValue, 1)
        {
        }

        public bool TryGather(IResource resource)
        {
            if (resource.Type == ResourceType.Lumber)
            {
                this.attackPoints += resource.Quantity;
                return true;
            }
            else if (resource.Type == ResourceType.Stone)
            {
                this.attackPoints += (resource.Quantity * 2);
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
